#define BIT_AUTOVOICE 1
#define BIT_AUTOOP 2
#define BIT_AUTOKICK 4

typedef struct _authlist authlist;
struct _authlist
{
  char *nick;
  char *mask;
  int level;
  authlist *next;
  authlist *prev;
};

typedef struct _chanlist chanlist;
struct _chanlist
{
  char *nom;
  authlist *auth_head;
  byte flag;
  chanlist *next;
};

void (*auth_add_auth) (msg *, int, int);
void (*auth_add_channel) (char *, int);
chanlist *(*auth_get_channel) (char *);
authlist *(*auth_get_auth_by_mask) (chanlist *, char *);
authlist *(*auth_get_auth_by_name) (chanlist *, char *);
void (*auth_del_auth_by_ptr) (chanlist *, authlist *);
int (*auth_is_auth) (char *, char *);
void (*auth_del_channel_by_ptr) (chanlist *);
unsigned int (*auth_get_sid) (void);
